#ifndef _SINGLETON_H_
#define _SINGLETON_H_

#include <stdio.h>
#include <iostream>
class CSingleton
{
public:
	int a;
	int b;
	void printt(void);
//===============================
public:
	static CSingleton* GetInstance();
private:
	CSingleton()
	{
	}
	static CSingleton *m_pInstance;

	class CGarbo
	{
	public:
		~CGarbo()
		{
			if(CSingleton::m_pInstance)
			{
				delete CSingleton::m_pInstance;
			}
		}
	};
	static CGarbo Garbo;
};
#define GLOBAL_DATA	CSingleton::GetInstance()

#endif
